import datetime
import sys
import time


while True:
    current_time = datetime.datetime.now()
    print("现在的时间为", current_time)
    current_time1 = time.asctime(time.localtime())
    print("当前时间为",current_time1)
    a = input("输入quit退出\n")
    if a == 'quit':
        sys.exit()
